import instance from "@/utils/HttpUtils.js";
import qs from "qs";

export default {
  // 获取员工列表
  getEmployeeList(data) {
    return instance.get("/employees/findEmployeeByPage?"+qs.stringify(data));
  },
  // 新增员工
  addEmployee(data) {
    return instance.post("/employees/saveEmployee", data);
  },
  // 编辑员工
  editEmployee(data) {
    return instance.put("/employees/updateEmployee", data); 
  },

  //启用禁用员工
  updateEmployeeStatus(data){
    return instance.put("/employees/updateEmployeeStatus", data); 
  }
}